﻿@model Web.Models.RegistryData

@using(Html.BeginForm())
{
    @Html.HiddenFor(x => x.User.UserGuid);
    @Html.HiddenFor(x => x.User.CustomerGuid);
    @Html.HiddenFor(x => x.Person.PersonGuid);
    
    <div class="form">

            <div class="formtitle">Użytkownik:</div>
            
           <div class="input">
			    <div class="inputtext">Typ uprawnień:</div>
			    <div class="inputcontent">
				    @Html.CheckBoxFor(m => m.IsWorker, new { @style = "width: 20px;", disabled = "disabled" }) Pracownik
                    @Html.HiddenFor(m=>m.User.UserRoleID)
			    </div>
		    </div>
                
            <div class="input">
			    <div class="inputtext">Nazwa użytkownika:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.User.UserDisplayName)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.User.UserDisplayName)
                    </div>
			    </div>
		    </div>

		    <div class="input">
			    <div class="inputtext">Hasło:</div>
			    <div class="inputcontent">
				    @Html.PasswordFor(m => m.Password)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
			    </div>
		    </div>

		    <div class="input">
			    <div class="inputtext">Adres Email:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.User.UserEmail)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.User.UserEmail)
                    </div>
			    </div>
		    </div>

            <div class="input">
			    <div class="inputtext">Konto aktywne:</div>
			    <div class="inputcontent">
				    @Html.CheckBoxFor(m => m.User.UserAccountIsActive, new { @style = "width: 20px;" })
			    </div>
		    </div>

            <div class="input">
			    <div class="inputtext">Utworzone dnia:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.User.UserDateCreated, new { @id = "date1" })
			    </div>
		    </div>

            <div class="input">
			    <div class="inputtext">Imię:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonFirstName)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonFirstName)
                    </div>
			    </div>
		    </div>

            <div class="input">
			    <div class="inputtext">Nazwisko:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonLastName)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonLastName)
                    </div>
			    </div>
		    </div>

		    <div class="input">
			    <div class="inputtext">Miasto:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonCity)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonCity)
                    </div>
			    </div>
		    </div>

		    <div class="input">
			    <div class="inputtext">Adres:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonAdress)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonAdress)
                    </div>
			    </div>
		    </div>

            <div class="input">
			    <div class="inputtext">Kod pocztowy:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonZipCode)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonZipCode)
                    </div>
			    </div>
		    </div>

            <div class="input">
			    <div class="inputtext">Data urodzenia:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonBirthDate, new { @id = "date2" })
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonBirthDate)
                    </div>
			    </div>
		    </div>

            <div class="input nobottomborder">
			    <div class="inputtext">Numer pesel:</div>
			    <div class="inputcontent">
				    @Html.TextBoxFor(m => m.Person.PersonNationalIdentifier)
                    <div class="inputcontenterror">
                        @Html.ValidationMessageFor(m => m.Person.PersonNationalIdentifier)
                    </div>
			    </div>
		    </div>

            <div class="buttons">
			    <input class="orangebutton" type="submit" value="Zapisz zmiany" />
		    </div>

        </div>
}